const express = require('express')
const router = express.Router()
    //导入数据库
const expressJoi = require('@escook/express-joi')
    //导入需要验证的规则对象
const reg_login_schema = require('../schema/schema')
    //导入自定义验证规则包

//导入验证表单数据的中间件
const userHandele = require('../router_handler/user.js')

//登录接口
router.post('/login', expressJoi(reg_login_schema.login_schema), userHandele.login)

module.exports = router